import React, { Component } from 'react'
import Child from './Child'

export default class Parent extends Component {
  state={
    salary: 12.5,
    
  }
  
  render() {
    return (
      <div>
         <h3>父：黑马武汉前端 64 期平均工资{this.state.salary}</h3>
         <hr/>
        <Child 
        salary={this.state.salary}
        age={18}
         ></Child>
      </div>
    )
  }

}
